package com.fanshuai.net.proxy;

import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.websocketx.WebSocketFrame;

import java.io.Closeable;

public interface Proxy extends Closeable {
    //将http请求发送到代理服务
    void sendHttpRequest(FullHttpRequest request);

    //webSocket握手
    void webSocketHandshake(FullHttpRequest request);

    //将webSocket消息转发到代理服务
    void sendWebSocketFrame(WebSocketFrame webSocketFrame);
}
